#include <stdio.h>
#include <sys/resource.h>

int main() {
  struct rlimit rl;
  getrlimit(RLIMIT_NOFILE, &rl);
  printf("rl.rlim_cur = %ld, rl.rlim_max = %ld\n", rl.rlim_cur, rl.rlim_max);
  printf("RLIM_INFINITY = %ld\n", RLIM_INFINITY);
  return 0;
}
